package com.yfj.entity;

import java.util.List;


public class Student extends People {
	private long id;
	private String password;
	private String name;
	private List<Course> courseList;
	private String college;
	private String major;
	public Student() {}
	public Student(long id, String password, String name, List<Course> courseList,String college,String major) {
		this.id = id;
		this.password = password;
		this.name = name;
		this.courseList = courseList;
		this.college=college;
		this.major=major;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Course> getCourseList() {
		return courseList;
	}
	public void setCourseList(List<Course> courseList) {
		this.courseList = courseList;
	}

	@Override
	public String getCollege() {
		return college;
	}

	@Override
	public void setCollege(String college) {
		this.college = college;
	}

	@Override
	public String getMajor() {
		return major;
	}

	@Override
	public void setMajor(String major) {
		this.major = major;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", password=" + password + ", name=" + name + ", college=" + college + ", major=" + major + "]";
	}
	
}
